package com.ruoyi.datam.service.impl;

import com.ruoyi.common.core.domain.business.waterDistribution.MiFarmlandB;

import com.ruoyi.datam.mapper.MiFarmlandBMapper;
import com.ruoyi.datam.service.IMiFarmlandBService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 农户地块对照Service业务层处理
 * 
 * @author ps
 * @date 2023-02-23
 */
@Service
public class MiFarmlandBServiceImpl implements IMiFarmlandBService
{
    @Autowired
    private MiFarmlandBMapper miFarmlandBMapper;

    /**
     * 查询农户地块对照
     * 
     * @param farmCd 农户地块对照主键
     * @return 农户地块对照
     */
    @Override
    public MiFarmlandB selectMiFarmlandBByFarmCd(String farmCd)
    {
        return miFarmlandBMapper.selectMiFarmlandBByFarmCd(farmCd);
    }

    /**
     * 查询农户地块对照列表
     * 
     * @param miFarmlandB 农户地块对照
     * @return 农户地块对照
     */
    @Override
    public List<MiFarmlandB> selectMiFarmlandBList(MiFarmlandB miFarmlandB)
    {
        return miFarmlandBMapper.selectMiFarmlandBList(miFarmlandB);
    }

    /**
     * 新增农户地块对照
     * 
     * @param miFarmlandB 农户地块对照
     * @return 结果
     */
    @Override
    public int insertMiFarmlandB(MiFarmlandB miFarmlandB)
    {
        return miFarmlandBMapper.insertMiFarmlandB(miFarmlandB);
    }

    /**
     * 修改农户地块对照
     * 
     * @param miFarmlandB 农户地块对照
     * @return 结果
     */
    @Override
    public int updateMiFarmlandB(MiFarmlandB miFarmlandB)
    {
        return miFarmlandBMapper.updateMiFarmlandB(miFarmlandB);
    }

    /**
     * 批量删除农户地块对照
     * 
     * @param farmCds 需要删除的农户地块对照主键
     * @return 结果
     */
    @Override
    public int deleteMiFarmlandBByFarmCds(String[] farmCds)
    {
        return miFarmlandBMapper.deleteMiFarmlandBByFarmCds(farmCds);
    }

    /**
     * 删除农户地块对照信息
     * 
     * @param farmCd 农户地块对照主键
     * @return 结果
     */
    @Override
    public int deleteMiFarmlandBByFarmCd(String farmCd)
    {
        return miFarmlandBMapper.deleteMiFarmlandBByFarmCd(farmCd);
    }
}
